+2007-04-16 Alexander Larsson <alexl@redhat.com>
+
+ * gtk/gtkprintoperation.c (gtk_print_operation_run):
+ Make async print preview work by actually starting
+ the print process in that case (#424168)
+
2007-04-14 Yevgen Muntyan <muntyan@tamu.edu>
* gtk/gtkselection.c (selection_get_text_plain): fixed
GtkPrintOperationResult result;
GtkPageSetup *page_setup;
gboolean do_print;
+ gboolean run_print_pages;
g_return_val_if_fail (GTK_IS_PRINT_OPERATION (op),
GTK_PRINT_OPERATION_RESULT_ERROR);
priv = op->priv;
+ run_print_pages = TRUE;
do_print = FALSE;
priv->error = NULL;
priv->action = action;
parent,
print_pages);
result = GTK_PRINT_OPERATION_RESULT_IN_PROGRESS;
+ run_print_pages = FALSE; /* print_pages is called asynchronously from dialog */
}
#endif
else
&do_print);
}
- if (result != GTK_PRINT_OPERATION_RESULT_IN_PROGRESS)
+ if (run_print_pages)
print_pages (op, parent, do_print, result);
if (priv->error && error)